package com.microHR.hr.service.impl;

import com.microHR.hr.mapper.RoleMapper;
import com.microHR.hr.model.Role;
import com.microHR.hr.model.RoleExample;
import com.microHR.hr.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper roleMapper;
    @Override
    public List<Role> getAllRoles() {
        RoleExample example = new RoleExample();
        return roleMapper.selectByExample(example);
    }
}
